#文件的写入

outfile=open("outfile.txt","w")
outfile.write("66666")
outfile.write("\n")
outfile.write("88888")
outfile.write("\n")
outfile.write("99999")
outfile.writelines(["0\n","2\n","4\n","6\n"])#列表
outfile.close()
print("写入成功")
